/**
 * 初始化收款登记查询详情对话框
 */
var CollectBasicInformationInfoDlg = {
    collectBasicInformationInfoData : {}
};

/**
 * 清除数据
 */
CollectBasicInformationInfoDlg.clearData = function() {
    this.collectBasicInformationInfoData = {};
}

/**
 * 设置对话框中的数据
 *
 * @param key 数据的名称
 * @param val 数据的具体值
 */
CollectBasicInformationInfoDlg.set = function(key, val) {
    this.collectBasicInformationInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
    return this;
}

/**
 * 关闭此对话框
 */
CollectBasicInformationInfoDlg.close = function() {
    parent.layer.close(window.parent.CollectBasicInformation.layerIndex);
}


/**
 * 提交修改
 */
CollectBasicInformationInfoDlg.editSubmit = function() {

	var a = $("#id").val();
	var id = Number(a);
	
	 $.ajax({
			async : false,
			type : 'post',
			url : Feng.ctxPath+'/collectBasicInformation/antiAudit?id='+id,
			contentType : "application/json;charset=UTF-8",
			success : function(data) {
				if (data == 'SUCCESS') {
					Feng.success("反审核成功!");
			        window.parent.CollectBasicInformation.table.refresh();
			        CollectBasicInformationInfoDlg.close();
				} else {
					 Feng.error("反审核失败！");
				}
			},
			error : function(data) {
				 Feng.error("操作失败!");
			}
		});
}

$(function() {

});
